import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/home',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/about',
      name: 'about', 
      component: () => import('../views/AboutView.vue'),
    },
     {
      path: '/show',   //科室显示
      name: 'show',  
      component: () => import('../views/HouseKS/ShowKSView.vue'),
    },
    {
      path: '/addks',   //科室添加
      name: 'addks',  
      component: () => import('../views/HouseKS/AddKSView.vue'),
    },
     {
      path: '/upks',   //科室修改
      name: 'upks',  
      component: () => import('../views/HouseKS/UpKsView.vue'),
    },
     {
      path: '/login',   //管理员登录
      name: 'login',  
      component: () => import('../views/HouseBF/LoginView.vue'),
    },
    {
      path: '/',   //病房修改
      name: 'showbf',  
      component: () => import('../views/HouseBF/ShowBFView.vue'),
    },
     {
      path: '/addbf',   //病房显示
      name: 'addbf',  
      component: () => import('../views/HouseBF/AddBFView.vue'),
    },

     {
      path: '/addys',   //医生添加
      name: 'addys',  
      component: () => import('../views/HouseYS/AddYSView.vue'),
    },
    {
      path: '/showys',   //医生显示
      name: 'showys',  
      component: () => import('../views/HouseYS/ShowYSView.vue'),
    },
  ],
})

export default router
